package com.dongdongshop.enums;

public enum ResultEnum {

    SUCCESS(666,"操作成功"),
    ERROR(667,"操作失败"),
    LOGIN_USERNAME_NULL(668,"账号不存在"),
    LOGIN_PASSWORD_ERROR(669,"密码错误"),
    SELECT_MESSAGE_ERROE(700,"查询失败"),
    ADD_MESSAGE_ERROE(701,"新增失败"),
    UPDATE_MESSAGE_ERROE(702,"修改失败"),
    DELETE_MESSAGE_ERROE(703,"删除失败"),
    REGISTER_MESSAGE_ERROE(704,"账号已被注册"),
    AUDIT_MESSAGE_SUCCESS(800,"审核通过成功"),
    AUDIT_MESSAGE_ERROER(801,"审核不通过"),
    AUDIT_MESSAGE_KILL(802,"关闭商家成功"),
    AUDIT_MESSAGE_LOGIN_NO(803,"审核未通过"),
    AUDIT_MESSAGE_LOGIN_KILL(804,"账号已被关闭"),
    MESSAGE_CODE_KILL(806,"已过期"),
    MESSAGE_CODE_ERROR(807,"错误"),
    AUDIT_MESSAGE_LOGIN_NULL(805,"账号未审核"),
    USER_NULL(808,"未登录"),
    KUCUNBUZU(809,"没有了"),
    AUDIT_MESSAGE(810,"审核通过"),
    AUDIT_MESSAGE_ERROR(811,"关闭商家失败"),
    GETBYID_ERROR(812,"回显异常"),
    Login_SUCCESS(813,"登录成功"),
    ENROLL_SUCCESS(814,"注册成功"),
    ENROLL_ERROR(815,"注册失败"),
    PARAMETER_FAILE(816,"参数异常"),
    USER_ERROR_NULL(817,"用户未登录");

    private Integer id;
    private String name;

    ResultEnum(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
